package com.andy.blog.dal.mapper;

import com.andy.blog.dal.domain.SysOperLogDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * 操作日志 数据层
 * <p>
 * Created by andy on 2023-04-05 11:38
 */
public interface SysOperLogMapper extends BaseMapper<SysOperLogDO> {
    /**
     * 新增操作日志
     *
     * @param sysOperLogDO 操作日志对象
     */
    void insertSelective(SysOperLogDO sysOperLogDO);

    /**
     * 清空操作日志
     */
    @Select("truncate table sys_oper_log")
    void cleanOperLog();
}
